package com.chinasoft.tw.service.lsk;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class LuoShunkang implements TrueWord {

    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public LuoShunkang() {
        name = "罗顺康";
        wordList.add("男人！什么罐头我说？曼巴蛇出去了！");
        wordList.add("Man！What can i say? Mamba out!");
    }

    @Override
    public Info getTrueWord() {
        int index = random.nextInt(wordList.size());
        Info info = new Info(name, wordList.get(index));
        return info;
    }
}
